package com.niit.gams.service;

import com.github.pagehelper.PageInfo;
import com.niit.gams.pojo.SysResource;

import java.util.List;

public interface SysResourceService {
  List<SysResource> findResourcesInRoleId(List<Long> rids);

  PageInfo<SysResource> findResourcesByPage(Integer curPage, Integer pageSize);

  boolean addPriv(SysResource resource);

  boolean delPriv(Integer pid);

  List<SysResource> findAll();

  List<Long> findPrivs(Long rid);

  boolean updateRolePrivs(Long rid, List<Long> pids);
}